<?php

namespace App\Models\Plugins;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Log;

class L1st extends Model
{
    //
    protected $table = 'plugin_list';

    //protected $hidden = [];
    protected $visible = ['id', 'display_name', 'ltype', 'completed_num', 'total_num', 'items'];
    protected $fillable = [];
    protected $appends = [];

    public function items()
    {
        return $this->hasMany('App\Models\Plugins\L1stItem', 'pid', 'id')->orderBy('priority', 'desc');
    }
}
